package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.KinectStick;

public class Kinect 
{
    KinectStick leftArm;
    KinectStick rightArm;
    private final double DEAD_ZONE_LEFT = 10;
    private final double DEAD_ZONE_RIGHT = 10;
    
    public Kinect(int leftArm, int rightArm)
    {
        this.leftArm  = new KinectStick(leftArm);
        this.rightArm = new KinectStick(rightArm);
    }
    
    public double getLeftY()
    {
        return leftArm.getY();
    }
    
    public double getRightY()
    {
        return rightArm.getY();
    }
    
    public edu.wpi.first.wpilibj.Kinect getInstance()
    {
        return edu.wpi.first.wpilibj.Kinect.getInstance();
    }
    
    public boolean getDeadZone()
    {
        if((getLeftY() < DEAD_ZONE_LEFT || getLeftY() < -DEAD_ZONE_LEFT) && (getRightY() < DEAD_ZONE_RIGHT || getLeftY() < -DEAD_ZONE_RIGHT)) 
        {
            return false;
        }
        return false;
    }
}
